home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / alias.z / alias
Encoding:
Text File  |  2002-10-03  |  3.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. aaaalllliiiiaaaassss((((1111))))                                                              aaaalllliiiiaaaassss((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      aaaalllliiiiaaaassss - define or display aliases
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      aaaalllliiiiaaaassss [aaaalllliiiiaaaassss____nnnnaaaammmmeeee[====ssssttttrrrriiiinnnngggg] ...]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      The aaaalllliiiiaaaassss utility creates or redefines alias definitions or writes the
  16.      values of existing alias definitions to standard output. An alias
  17.      definition provides a string value that replaces a command name when it
  18.      is encountered.
  19.  
  20.      An alias definition affects the current shell execution environment and
  21.      the execution environments of the subshells of the current shell. When
  22.      used as specified by this specification, the alias definition will not
  23.      affect the parent process of the current shell nor any utility
  24.      environment invoked by the shell.
  25.  
  26. OOOOPPPPEEEERRRRAAAANNNNDDDDSSSS
  27.      The following operands are supported:
  28.  
  29.      _aaaa_llll_iiii_aaaa_ssss______nnnn_aaaa_mmmm_eeee          Write the alias definition to standard output.
  30.  
  31.      _aaaa_llll_iiii_aaaa_ssss______nnnn_aaaa_mmmm_eeee_====_ssss_tttt_rrrr_iiii_nnnn_gggg   Assign the value of string to the alias aaaalllliiiiaaaassss____nnnnaaaammmmeeee....
  32.  
  33.      If no operands are given, all alias definitions will be written to
  34.      standard output.
  35.  
  36. SSSSTTTTDDDDOOOOUUUUTTTT
  37.      The format for displaying aliases (when no operands or only name operands
  38.      are specified) is:
  39.  
  40.           "%s=%s\n", name, value
  41.  
  42.      The value string will be written with appropriate quoting so that it is
  43.      suitable for reinput to the shell.
  44.  
  45. EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  46.      The following exit values are returned:
  47.  
  48.      _0000    Successful completion.
  49.  
  50.      >>>>0000   One of the name operands specified did not have an alias definition,
  51.           or an error occurred.
  52.  
  53. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  54.      1.   Change llllssss to give a columnated, more annotated output:
  55.  
  56.           alias ls="ls -CF"
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. aaaalllliiiiaaaassss((((1111))))                                                              aaaalllliiiiaaaassss((((1111))))
  71.  
  72.  
  73.  
  74.      2.   Create a simple "redo" command to repeat previous entries in the
  75.           command history file:
  76.  
  77.           alias r='fc -s'
  78.  
  79.      3.   Use 1K units for dddduuuu:
  80.  
  81.           alias du=du -k
  82.  
  83.      4.   Set up nnnnoooohhhhuuuupppp so that it can deal with an argument that is itself an
  84.           alias name:
  85.  
  86.           alias nohup="nohup "
  87.  
  88. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  89.      sssshhhh((((1111))))
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.